Global Index
HTML5 JS API Index > Shadow DOM Tutorials & Specs

Element

This page describes Shadow DOM extensions to the origial Element type.

Properties
DOMString
pseudo
Represents the custom pseudo-element value, associated with the element.
ShadowRoot?shadowRoot
Operations
ShadowRoot
createShadowRoot()
When invoked, these steps must be run: If the context object is not an element, throw an InvalidNodeTypeError.Otherwise: Create a new instance of the ShadowRoot objectEstablish the context object as the shadow host of the ShadowRoot objectAdd the ShadowRoot object at the top of the tree stack of its hostReturn ShadowRoot object.